package com.zmj.sy.mom.srv.aps.feign;

import com.zmj.sy.mom.srv.aps.bean.vo.nest.NestLanCommonsResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.nestpre.LantekPreDrawReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.nestpre.LantekPrePlanReqVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(url = "${project.feign.ltk-pre-url}", name = "lantekPreApiClient")
public interface LantekPreApiClient {

    /**
     * 预套料：推送图纸信息
     */
    @PostMapping("/0114/BasePart/RegisterOrUpdate")
    NestLanCommonsResVo registerOrUpdate(@RequestBody LantekPreDrawReqVo reqVo, @RequestHeader("Authorization") String token);

    /**
     * 预套料：推送计划信息
     */
    @PostMapping("/0114/ManufacturingOrder/CreatePre")
    NestLanCommonsResVo createPlan(@RequestBody LantekPrePlanReqVo reqVo, @RequestHeader("Authorization") String token);

}
